package cn.bellychang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

/**
 * @author ChangLiang
 * @date 2020/3/3
 */
@SpringBootApplication
@EnableWebSocket
public class BootStrap {

    public static void main(String[] args) {
        SpringApplication.run(BootStrap.class,args);
    }

    /**
     * If you want to use @ServerEndpoint in a Spring Boot application that used an embedded container,
     * you must declare a single ServerEndpointExporter
     * @link{https://docs.spring.io/spring-boot/docs/reference/htmlsingle/ Create WebSocket Endpoints Using @ServerEndpoint}
     * @return
     */
/*    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }*/
}
